package com.kuang.springcloud.dao;

import com.kuang.springcloud.pojo.Dept;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
//@Repository
public interface DeptDao {
    //添加部门
    public boolean addDept(Dept dept);

    //根据id查询部门
    public Dept queryById(Integer id);

    //查询全部部门
    public List<Dept> queryAll();


    public Dept finByDname(String dname);
}
